var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var ListSchema = new Schema({
  name: { type: String },
  desc: { type: String },
  order: { type: Number, default: 1 },
  user_id: { type: ObjectId },
  tag_id: { type: ObjectId },
  followers: { type: [ObjectId] },
  follower_count: { type: Number, default: 0 },
  link_count: { type: Number, default: 0 },
  create_at: { type: Date, default: Date.now }
});

mongoose.model('List', ListSchema);
